import React from "react";
import Form from "./Form.js";
import Login from "./Login.js";
import Reg from "./Reg.js";
import { Tabs } from "antd";

const onChange = (key) => {
  console.log(key);
};

const items = [
  {
    key: "1",
    label: `登录`,
    children: <Login></Login>,
  },
  {
    key: "2",
    label: `注册`,
    children: <Reg></Reg>,
  },
  {
    key: "3",
    label: `详情`,
    children: <Form></Form>,
  },
];

const App = () => <Tabs defaultActiveKey="1" items={items} onChange={onChange} />;
export default App;


